﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.Core.Data;
using TomNet.IMSC.Model.Infrastructure;

namespace TomNet.IMSC.Model.DbModels.Common
{
    /// <summary>
    /// 地区表
    /// </summary>
    public class Area : EntityBase<string>
    {
        /// <summary>
        /// 名称
        /// </summary>
        [StringLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 父级ID
        /// </summary>
        public string ParentID { get; set; }
        /// <summary>
        /// 简称
        /// </summary>
        [StringLength(50)]
        public string EasyName { get; set; }
        /// <summary>
        /// 等级
        /// </summary>
        public int AreaLevel { get; set; }
        /// <summary>
        /// 区号
        /// </summary>
        [StringLength(50)]
        public string ZoneDescription { get; set; }
        /// <summary>
        /// 邮编
        /// </summary>
        [StringLength(50)]
        public string ZipCode { get; set; }
        /// <summary>
        /// 拼间
        /// </summary>
        [StringLength(50)]
        public string Spell { get; set; }

    }
}
